package com.handpay.nocardpay.baselibrary.main.all.view.widget;

import android.content.Context;
import android.widget.ImageView;

import com.handpay.nocardpay.baselibrary.logutils.HPLog;
import com.handpay.nocardpay.baselibrary.main.all.model.bean.BannerByChannelBean;
import com.handpay.nocardpay.baselibrary.utils.BitmapLoaderNew;
import com.squareup.picasso.Picasso;
import com.youth.banner.loader.ImageLoader;

/**
 * Created by lyang on 2018/2/2.
 */

public class GlideImageLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        BannerByChannelBean.ListBean bean = (BannerByChannelBean.ListBean) path;
        String url = bean.getBannerPath();
        HPLog.i(HPLog.YL_TAG, "BannerPath:" + url);
        BitmapLoaderNew.getInstance(context).loadImage(url, imageView);
//        Picasso.with(context).load(bean.getBannerPath()).into(imageView);
    }
}